package com.zjp.proxy2;

/**
 * @author: zjp
 * @date: 2023-12-03
 * @description: 测试代理UserService
 */
public class TestProxyUserService {
    public static void main(String[] args) throws InterruptedException {
        UserService userService = ProxyUtil.createUserServiceProxy(new UserServiceImpl());

        String account = "zjp";
        String password = "8888";
        userService.login(account, password);
        System.out.println("------------------------------");

        userService.getUserInfo(account);
        System.out.println("------------------------------");

        userService.removeUserById(account);
    }
}
